<?php

class CreatePageForm extends MForm {

    public function  __construct() {

        parent::__construct(__route('ml-admin/page/create'));
        $this->setMethod(self::METHOD_POST);
        $this->setEnctype(self::ENCTYPE_DATA);
        $this->add(self::ELEMENT_TEXT, 'title')
                    ->setLabel('Title :')
                    ->setId('title');
        $this->add(self::ELEMENT_TEXTAREA, 'html_content')
                    ->setId('html_content')
                    ->setLabel('Content :')
                    ->setHtmlOption('ROWS', '15')
                    ->setHtmlOption('COLS', '100');
        $this->add(self::ELEMENT_SUBMIT, 'create')
                    ->setValue('Create');
    }

}

?>

